# 定义类
class Dog:
    # 初始化方法
    def __init__(self, name, age, person):
        self.name = name
        self.age = age
        self.person = person

    # 抽象方法
    def wan(self):
        print(f"{self.person}带着{self.name}去公园玩")


# 创建对象
dog = Dog("旺财", 2, "张三")

# 调用方法
dog.wan()
